import service from '../http'

//  获取erp订单列表
export function getOrderList(params) {
  return service({
    url: `/order/list`,
    method: 'get',
    params
  })
}

//  获取订单摘要
export function getOrderAbstract(params) {
  return service({
    url: `/order/abstract`,
    method: 'get',
    params
  })
}

//  修改订单摘要
export function putOrderAbstract(data?, options?) {
  return service({
    url: `/order/abstract`,
    method: 'put',
    data,
    ...options
  })
}

//  获取订单排班
export function getOrderSchedule(params?, options?) {
  return service({
    url: `/order/schedule`,
    method: 'get',
    params,
    ...options
  })
}

//  进行员工排班
export function postOrderSchedule(data?, options?) {
  return service({
    url: `/order/schedule`,
    method: 'post',
    data,
    ...options
  })
}

//  修改员工排班
export function putOrderSchedule(data?, options?) {
  return service({
    url: `/order/schedule`,
    method: 'put',
    data,
    ...options
  })
}
